package com.wsj.aop;

import javax.annotation.PostConstruct;
import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;

/**
 * description:Advisor由切入点和Advice组成
 *
 * @author yang
 * @date 2019/2/19 11:30
 */
public class LogAdvisor extends AbstractPointcutAdvisor {

  private Advice advice;
  private Pointcut pointcut;

  @PostConstruct
  public void init() {
    //AnnotationMatchingPointcut是依据修饰类和方法的注解进行拦截的切入点。
    //this.pointcut = new AnnotationMatchingPointcut(null, Log.class);
    //通知
    //this.advice = new LogMethodInterceptor();
  }

  @Override
  public Pointcut getPointcut() {
    return null;
  }

  @Override
  public Advice getAdvice() {
    return null;
  }
}
